package com.zjj.service;


import com.github.pagehelper.PageInfo;
import com.zjj.entity.Employees;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Y
* @description 针对表【employees】的数据库操作Service
* @createDate 2024-10-21 08:46:54
*/
public interface EmployeesService {
    //获取员工列表
    List<Employees> getList(@Param("empName") String empName, @Param("phoneNumber") String phoneNumber);
    //新增
    int save(Employees employees);

    //修改
    int update(Employees employees);

    //分页
    PageInfo<Employees> getPage(Integer pageNum);
    //删除
    int delete(@Param("employeeId") Integer employeeId);

    //获取用户信息通过登录名和密码
    Employees searchAllByLoginNameAndPassword(@Param("loginName") String loginName,
                                              @Param("password") String password);

}